#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    double a,b,c;
    cin>>a>>b>>c;
    printf("%.2lf %.2lf",a+b+c,(a+b+c)/3);
    return 0;
}
